how to calculate capital ratio